package com.sjf.batch.config;

import lombok.EqualsAndHashCode;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.Properties;

@EqualsAndHashCode(callSuper = true)
@Configuration
@ConfigurationProperties("spring.datasource.es")
public class EsConfig extends Properties {
    private String url;

    public String getUrl () {
        return this.url;
    }

    public void setUrl ( String url ) {
        this.url = url;
        this.put ("url" , url);
    }
}